package org.tc.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.tc.bean.Item;
import org.tc.bean.ItemDesc;
import org.tc.mapper.ItemDescMapper;
import org.tc.mapper.ItemMapper;
import org.tc.service.ItemRpcService;

/**
 * Created by zxd on 2018/2/1.
 */
public class ItemRpcServiceImpl implements ItemRpcService{
    @Autowired
    private ItemMapper itemMapper;
    @Autowired
    private ItemDescMapper itemDescMapper;
    @Override
    public Item queryItemByItemId(Long itemId) {
        return itemMapper.selectByPrimaryKey(itemId);
    }
    @Override
    public ItemDesc queryItemDescByItemId(Long itemId) {
        return itemDescMapper.selectByPrimaryKey(itemId);
    }
}
